SG Window | |
Item Property |
See Also Properties Events Constants Error Codes How To... FAQ |
Returns Window object based on the specified key. Default, read only.
object.Item(key)
The Item property has the following parts:
Part | Description |
object | object expression that evaluates to the Windows collection |
key | key associated with the Window being retrieved |
Key can be Integer or String. If it is Integer than it is zero based index of the item in the collection. If key is String than it's syntax is as folows:
"Caption" | specifies window with 'Caption' as window text |
"{ID}100" | specifies window with ID equal to 100 |
"{HWND}100" | specifies window with HWND equal to decimal 100 |
"{HWND}&H100" | specifies window with HWND equal to hexadecimal 100 |
Dim w set w = CreateObject("SGWindow.Window") w.AttachDesktop MsgBox "Class name of the first desktop's child is " & w.Children(0).Class